<template>
  <div>
    <!-- 商品分类导航 -->
    <TypeNav></TypeNav>
    <!--列表-->
    <ListContainer></ListContainer>
    <!--今日推荐-->
    <TodayRecommend></TodayRecommend>
    <!-- 商品排行 -->
    <Rank></Rank>
    <!-- 猜你喜欢 -->
    <Link></Link>
    <!--楼层-->
    <Floor v-for="(foolr,index) in floorLsit" :key="foolr.id" :foolr="foolr"></Floor>
    <!--商标-->
    <Brand></Brand>
  </div>
</template>

<script>
import ListContainer from "./ListContainer/index.vue";
import TodayRecommend from "./TodayRecommend/index.vue";
import Rank from "./Rank/index.vue";
import Link from "./Link/index.vue";
import Floor from "./Floor/index.vue";
import Brand from "./Brand/index.vue";
import { mapState } from 'vuex';

export default {
  name: "HoMe",
  components: { ListContainer, TodayRecommend, Rank, Link, Floor, Brand },
    mounted() {
    this.$store.dispatch("getFloorList");
  },
  computed: {
    ...mapState({
      floorLsit: (stata) => stata.home.getFloorList,
    }),
  },
};
</script>

<style>
</style>